﻿@using Infrastructure.Operator
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Left</title>
    <link href="~/Content/newui/css/common.css" rel="stylesheet" />
    <link href="~/Content/newui/css/style.css" rel="stylesheet" />
</head>
<body>
    <div class="system">
        <div class="left-container">
            <div class="shadow"></div>
            <ul class="menu-tree" id="menu-tree">
                @*@if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("管理信息") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                {*@
                    <li>
                        <div><img src="~/Content/newui/img/right.png" alt="">管理信息</div>
                        <!-- class="click-box" -->
                        <ul>
                            <!--class="view-box" -->
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("账号管理") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li class="active"><a href='@Url.Action("Index","AdminUser")' target="rightFrame">账号管理</a></li>
                            }

                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("设备管理") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("Index", "Mobile")' target="rightFrame">设备管理</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("部门管理") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("Index", "Depart")' target="rightFrame">部门管理</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("用户管理") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("Index", "UserInfo")' target="rightFrame">普通用户</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("访客管理") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("Index", "Visitor")' target="rightFrame">访客管理</a></li>
                            }

                        </ul>
                    </li>
                @*}*@
                @*@if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("会议信息") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                {

                    <li>
                        <div><img src="~/Content/newui/img/right.png" alt="">会议管理</div>
                        <ul>
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("会议管理") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("Index", "Meet")' target="rightFrame">会议管理</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("人员管理") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("CompanyIndex", "Visitor")' target="rightFrame">人员管理</a></li>
                            }

                        </ul>
                    </li>
                }*@
                @*@if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("考勤信息") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                {*@
                    <li>
                        <div><img src="~/Content/newui/img/right.png" alt="">考勤信息</div>
                        <ul>
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("员工记录") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("Index","AccessRecord")' target="rightFrame">员工记录</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("访客记录") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("VisitorRecords","Visitor")' target="rightFrame">访客记录</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("打卡记录") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("NewRecordIndex","NewRecord")' target="rightFrame">打卡记录</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("图形展示") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("HighchartView","AccessRecord")' target="rightFrame">图形展示</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("考勤记录") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("CheckIn","AccessRecord")' target="rightFrame">考勤记录</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("车辆记录") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("CarRecordIndex","CarRecord")' target="rightFrame">车辆记录</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("学校考勤") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("XXCheckRecord","AccessRecord")' target="rightFrame">学校考勤</a></li>
                            }
                        </ul>
                    </li>
                @*}*@
                @*@if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("系统信息") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                {*@
                    <li>
                        <div><img src="~/Content/newui/img/right.png" alt="">系统信息</div>
                        <ul>
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("系统设置") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("Index", "SystemConfig")' target="rightFrame">系统设置</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("同步日志") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("SyncErrorIndex", "SyncError")' target="rightFrame">同步日志</a></li>
                            }
                            @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("假期管理") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                            {
                                <li><a href='@Url.Action("HolidayIndex", "Holiday")' target="rightFrame">假期管理</a></li>
                            }
                        </ul>
                    </li>
                @*}*@
            </ul>


        </div>
    </div>
</body>
</html>
<script src="~/Content/newui/js/jquery-2.1.4.min.js"></script>
<script src="~/Content/newui/js/layout.js"></script>


